package com.lcc.gulimall.product.feign;

import com.lcc.common.to.SkuHasStockTo;
import com.lcc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    //用R太麻烦，直接返回想要的结果，可以给R加上泛型
    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

}
